package com.sixmac.dao;

import com.sixmac.entity.WxUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import java.util.Date;
import java.util.List;

/**
 * Created by Administrator on 2016/5/19 0019 上午 10:00.
 */
public interface WxUserDao extends JpaRepository<WxUser, Integer>, JpaSpecificationExecutor<WxUser> {

    @Query("select a from WxUser a where a.attentionTime > ?1")
    public List<WxUser> findListNew(Date oldDate);

    @Query("select a from WxUser a where a.nickname like ?1")
    public List<WxUser> findList(String nickName);
}